package com.nanhai.buddhist.college.framework.datapermission.config;

//@Configuration
//@ConditionalOnClass(LoginUser.class)
//@ConditionalOnBean(value = {CollegeClassApi.class, TeacherDataPermissionRuleCustomizer.class})
public class CollegeTeacherDataPermissionAutoConfiguration {

//    @Bean
//    public TeacherDataPermissionRule teacherDataPermissionRule(CollegeClassApi collegeClassApi,
//                                                         List<TeacherDataPermissionRuleCustomizer> customizers) {
//        // 创建 DeptDataPermissionRule 对象
//        TeacherDataPermissionRule rule = new TeacherDataPermissionRule(collegeClassApi);
//        // 补全表配置
//        customizers.forEach(customizer -> customizer.customize(rule));
//        return rule;
//    }

}
